package com.zkthink.clh.order.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zkthink.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author chenke
 * @since 2022-05-27
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("chl_member_ticheng")
@ApiModel(value = "MemberTicheng", description = "")
@AllArgsConstructor
public class ChlMemberTicheng extends Entity<Long> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "")
    @TableField("mid")
    @Excel(name = "")
    private Long mid;

    @ApiModelProperty(value = "")
    @TableField("userid")
    @Excel(name = "")
    private Long userid;

    /**
     * 会员昵称
     */
    @ApiModelProperty(value = "会员昵称")
    @Length(max = 20, message = "会员昵称长度不能超过20")
    @TableField(value = "nickname", condition = LIKE)
    @Excel(name = "会员昵称")
    private String nickname;

    /**
     * 会员头像
     */
    @ApiModelProperty(value = "会员头像")
    @Length(max = 500, message = "会员头像长度不能超过500")
    @TableField(value = "headimg", condition = LIKE)
    @Excel(name = "会员头像")
    private String headimg;

    /**
     * 消费金额
     */
    @ApiModelProperty(value = "消费金额")
    @NotNull(message = "消费金额不能为空")
    @TableField("xiaofei")
    @Excel(name = "消费金额")
    private BigDecimal xiaofei;

    /**
     * 提成金额
     */
    @ApiModelProperty(value = "提成金额")
    @TableField("ticheng")
    @Excel(name = "提成金额")
    private BigDecimal ticheng;



}
